projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35b3880
)
(del_range_2, replace_range): Don't write an anchor if the gap is empty.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 22 May 2004 22:15:37 +0000
(22:15 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 22 May 2004 22:15:37 +0000
(22:15 +0000)
src/insdel.c
patch
|
blob
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index 5e3f69161e05f9d89064d8875ea3104935ce03b2..ffe7006a45b3e349c7637ce987522c0bba4dd7aa 100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-1556,7
+1556,7
@@
replace_range (from, to, new, prepare, inherit, markers)
Z_BYTE -= nbytes_del;
GPT = from;
GPT_BYTE = from_byte;
-
*(GPT_ADDR) = 0;
/* Put an anchor. */
+
if (GAP_SIZE > 0) *(GPT_ADDR) = 0;
/* Put an anchor. */
if (GPT_BYTE < GPT)
abort ();
@@
-1839,7
+1839,7
@@
del_range_2 (from, from_byte, to, to_byte, ret_string)
Z -= nchars_del;
GPT = from;
GPT_BYTE = from_byte;
-
*(GPT_ADDR) = 0;
/* Put an anchor. */
+
if (GAP_SIZE > 0) *(GPT_ADDR) = 0;
/* Put an anchor. */
if (GPT_BYTE < GPT)
abort ();